{% extends "base/base.html" %}
{% import "macro/display.html" as display -%}
{% block title %}Search Site{% endblock %}

{% block main %}
 <h2><img class="icon_header" src="{{ MEDIA_URL }}find.png" alt="" />Search For Users / Songs / Groups / Compilations / Labels / Artists</h2>
 <form action='.' method="post">
 <input name="Search" /><input type="submit" value="Search" />
 </form>

{% if users %}
  <h2><img class="icon_header" src="{{ MEDIA_URL }}user.png" alt="" />Users Found</h2>
  {% for u in users %}
  {{ display.user(u) }}<br/>
  {% endfor %}
{% endif %}

 {% if artists %}
  <h2><img class="icon_header" src="{{ MEDIA_URL }}user_green.png" alt="" />Artists Found</h2>
  {% for artist in artists %}
   {{ display.artist(artist) }}<br/>
  {% endfor %}
 {% endif %}

 {% if groups %}
  <h2><img class="icon_header" src="{{ MEDIA_URL }}group.png" alt="" />Groups Found</h2>
  {% for group in groups %}
    {{ display.group(group) }}<br />
  {% endfor %}
 {% endif %}

{% if compilations %}
 <h2><img class="icon_header" src="{{ MEDIA_URL }}recplay_ico.png" alt="" />Compilations Found</h2>
  {% for comp in compilations %}
   {{ display.compilation(comp) }}<br/>
  {% endfor %}
{% endif %}

{% if labels %}
 <h2><img class="icon_header" src="{{ MEDIA_URL }}transmit_blue.png" alt="" />Labels Found</h2>
 {% for lab in labels %}
  {{ display.label(lab) }}<br/>
 {% endfor %}
{% endif %}

 {% if songs %}
  <h2><img class="icon_header" src="{{ MEDIA_URL }}music.png" alt="" />Songs Found</h2>
{% include "webview/t/songheader.html" %}
  {% for song in songs %}
   <tr>{% include "webview/t/songlist.html" %}</tr>
  {% endfor %}
  </table>
 {% endif %}



{% endblock %}

